<div class="wrapper">
            	
    <div class="shopclass">
    
    <!-- 第0个 -->
        <div class="category-item">
        	
            <h4><a href="<?php echo base_url("lists/index/1175"); ?>" style="color:#FF4500;"><b>学习文具</b></a></h4>
        	
            <!-- 右边分类大的面板 -->
            <?php $first_category_s = $this->m_category->selectCategoryByParentId('1175');?>
        	<div class="category-panel">
        		<?php foreach($first_category_s as $firstCateVals){ ?>
                <ol class="clearfix">
                    
                    <dt><a href="<?php echo base_url("lists/index/".$firstCateVals->cate_id); ?>"><?php echo $firstCateVals->cate_name; ?></a></dt>

                    <dl>
                    <?php $second_category_s = $this->m_category->selectCategoryByParentId($firstCateVals->cate_id);?>
                    <?php foreach($second_category_s as $secondCateVals){ ?>
                    
                    	<span><a href="<?php echo base_url("lists/index/".$secondCateVals->cate_id); ?>"><?php echo $secondCateVals->cate_name; ?></a></span>
                    <?php }  ?>
                    </dl>

                </ol>
			<?php }  ?>
        	</div><!-- category-panel -->

        </div><!-- category-item -->
    	
    	<!-- 第一个 -->
    	<div class="category-item first-item">
        	
            <h4><a href="<?php echo base_url("lists/index/1"); ?>" style="color:#FF4500;"><b>全部教材</b></a></h4>
            <!-- 右边分类大的面板 -->
            <?php $first_category = $this->m_category->selectCategoryByParentId('1');?>
        	<div class="category-panel">
        		<?php foreach($first_category as $firstCateVal){ ?>
                <ol class="clearfix">
                    
                    <dt><a href="<?php echo base_url("lists/index/".$firstCateVal->cate_id); ?>"><?php echo $firstCateVal->cate_name; ?></a></dt>

                    <dl>
                    <?php $second_category = $this->m_category->selectCategoryByParentId($firstCateVal->cate_id);?>
                    <?php foreach($second_category as $secondCateVal){ ?>
                    
                    	<span><a href="<?php echo base_url("lists/index/".$secondCateVal->cate_id); ?>"><?php echo $secondCateVal->cate_name; ?></a></span>
                    <?php }  ?>
                    </dl>

                </ol>
			<?php }  ?>
        	</div><!-- category-panel -->

        </div><!-- category-item -->
        
    </div><!-- shopclass-show -->

</div><!-- classbox -->